<script setup lang="ts">
import { useMoneyStore } from '../store/money'

let moneyStore = useMoneyStore()

function guaguale(){
  moneyStore.win(100)
}

function buy(){
  moneyStore.win(-5)
}
</script>

<template>
<button @click="guaguale">刮刮乐</button>
<button @click="buy">买棒棒糖</button>
</template>

<style scoped>

</style>